package com.ruoyi.system.chat.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ChatLogEntity {

    private int id;

    private int userId;

    private int platformId;

    private int modelId;

    private int apiKeyId;

    private int balanceId;

    private int balanceRecordId;

    private int inputTokens;

    private int outputTokens;

    private String request;

    private String userContent;

    private String response;

    private int status;

    private String question;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    private String username;

    private String email;

    private String platformName;

    private String modelName;

    private String statusName;
    public static final int STATE_SUCCESS = 0;
    public static final int STATE_ERROR_FROM_RESPONSE = -1;
    public static final int STATE_ERROR_BY_EXCEPTION = -2;
}
